com.supermap.ar.areffect
Class OcclusionHelper
- java.lang.Object
-
- com.supermap.ar.areffect.OcclusionHelper
-
public class OcclusionHelper extends java.lang.Object
Occlusion assistantMostly used for local rendering of the picture, showing the rendering effect of virtual and real occlusion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
OcclusionHelper.RenderMode
Rendering mode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description OcclusionHelper
addPointList(java.util.ArrayList<int[]> screenPoint)
Adds a screen coordinate point collection A collection of points that are not joined at the beginning and endOcclusionHelper
clearPointList()
Clears the screen coordinate point collectionOcclusionHelper.RenderMode
getRenderMode()
Get occlusion modefloat
getReSampleSize()
Gets the resampling size Value range[0.001,1]OcclusionHelper
init()
InitializeOcclusionHelper
init(float reSampleSize)
Initializeboolean
isEnabled()
Checking whether to Enableboolean
isLocked()
Get lock statusisEnabled()
is true, and setLocked(true) returns truevoid
refresh()
refreshOcclusionHelper
setEnabled(boolean enabled)
Setting the Enable Statusboolean
setLocked(boolean locked)
Set lock status It only works if#setEnabled(Boolean)
is trueOcclusionHelper
setRenderMode(OcclusionHelper.RenderMode renderMode)
Set occlusion rendering modeOcclusionHelper
setUniquePointList(java.util.ArrayList<int[]> screenPoint)
Sets a unique set of screen coordinate points
-
-
-
Method Detail
-
init
public OcclusionHelper init()
Initialize
-
init
public OcclusionHelper init(float reSampleSize)
Initialize- Parameters:
reSampleSize
- Resampling coefficient
-
getRenderMode
public OcclusionHelper.RenderMode getRenderMode()
Get occlusion mode- Returns:
-
setRenderMode
public OcclusionHelper setRenderMode(OcclusionHelper.RenderMode renderMode)
Set occlusion rendering mode- Parameters:
renderMode
-
-
getReSampleSize
public float getReSampleSize()
Gets the resampling sizeValue range[0.001,1]
- Returns:
-
isEnabled
public boolean isEnabled()
Checking whether to Enable- Returns:
- Status value
-
setEnabled
public OcclusionHelper setEnabled(boolean enabled)
Setting the Enable Status- Parameters:
enabled
- Status value
-
addPointList
public OcclusionHelper addPointList(java.util.ArrayList<int[]> screenPoint)
Adds a screen coordinate point collectionA collection of points that are not joined at the beginning and end
- Parameters:
screenPoint
-
-
clearPointList
public OcclusionHelper clearPointList()
Clears the screen coordinate point collection
-
setUniquePointList
public OcclusionHelper setUniquePointList(java.util.ArrayList<int[]> screenPoint)
Sets a unique set of screen coordinate points- Parameters:
screenPoint
-
-
refresh
public void refresh()
refresh
-
isLocked
public boolean isLocked()
Get lock statusisEnabled()
is true, and setLocked(true) returns true- Returns:
-
setLocked
public boolean setLocked(boolean locked)
Set lock statusIt only works if
#setEnabled(Boolean)
is true- Parameters:
locked
-- Returns:
- Return true on success
-
-